/*******************************************************************************
EntityResource.h

	Used to load information about an entity from a file.
*******************************************************************************/

#pragma once

#include <string>	// Nice strings!
#include <fstream>	// File stream
#include <map>		// The container

class EntityResource
{
public:
	// Loads resource data from the given filename
	void LoadFromFile(std::string strFileName);
	// Gets a value from a given index
	std::string GetProperty(std::string strIndex);
	// Gets the EntityID
	std::string GetEntityType(void);
protected:
	// Strips the white space from a string
	void RemoveWhiteSpace(std::string& strString);
	// Used to store a string to string index to value relationship
	std::map<std::string, std::string> m_entityData;
	// Used to store the EntityID
	std::string m_entityType;
};